package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 领料出库对象 mes_get_mat
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesGetMat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 领料出库id */
    private Integer id;

    /** 物料计划编码 */
    @Excel(name = "物料计划编码")
    private String matPlan;

    /** 原料编码 */
    @Excel(name = "原料编码")
    private String matId;

    /** 库位编码 */
    @Excel(name = "库位编码")
    private String locaId;

    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date getMatTime;

    public Long getNeedMatNum() {
        return needMatNum;
    }

    public void setNeedMatNum(Long needMatNum) {
        this.needMatNum = needMatNum;
    }

    @Excel(name = "出库数量")
    private Long needMatNum;

    public List<MesGetMat> getMtrs() {
        return mtrs;
    }

    public void setMtrs(List<MesGetMat> mtrs) {
        this.mtrs = mtrs;
    }

    private List<MesGetMat> mtrs;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setMatPlan(String matPlan) 
    {
        this.matPlan = matPlan;
    }

    public String getMatPlan() 
    {
        return matPlan;
    }
    public void setMatId(String matId) 
    {
        this.matId = matId;
    }

    public String getMatId() 
    {
        return matId;
    }
    public void setLocaId(String locaId) 
    {
        this.locaId = locaId;
    }

    public String getLocaId() 
    {
        return locaId;
    }
    public void setGetMatTime(Date getMatTime) 
    {
        this.getMatTime = getMatTime;
    }

    public Date getGetMatTime() 
    {
        return getMatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("matPlan", getMatPlan())
            .append("matId", getMatId())
            .append("locaId", getLocaId())
            .append("getMatTime", getGetMatTime())
            .toString();
    }
}
